#Include DrawBase.ahk

class DrawBorder extends DrawBase {

  __New(color := 0xFFFFFFFF) {
    this.color := color
  }

  Draw(overlay, pos, *) {
    DrawBorder.Render(overlay, '', pos)
  }

  EndDraw(*) => []

  static Render(overlay, _, pos, *) {
    overlay.DrawRectangle(1, 1, pos.w - 1, pos.h - 1, 0xFFFFFFFF)
  }

}